package com.rimi.service.impl;

import com.rimi.bean.Menu;
import com.rimi.dao.MenuDao;
import com.rimi.dao.impl.MenuDaoImpl;
import com.rimi.service.MenuService;

import java.util.List;

/**
 * @author chengliang
 */
public class MenuServiceImpl implements MenuService {

    private MenuDao menuDao = new MenuDaoImpl();

    @Override
    public List<Menu> getMenuListByRoleId(int roleId) {
        return menuDao.selectMenuListByRoleId(roleId);
    }
}
